<!-- 400错误页面 (400.html) -->
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>400 - 错误请求</title>
    <style>
        body {
            margin: 0;
            padding: 0;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            background-color: #f8f9fa;
            color: #333;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
        }
        .error-container {
            max-width: 600px;
            padding: 2rem;
            animation: fadeIn 0.5s ease-in-out;
        }
        .error-code {
            font-size: 8rem;
            font-weight: bold;
            color: #ffc107;
            margin: 0;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
            transition: transform 0.3s ease;
        }
        .error-code:hover {
            transform: scale(1.05);
        }
        .error-message {
            font-size: 1.5rem;
            margin: 1rem 0 2rem;
            color: #666;
        }
        .error-description {
            font-size: 1rem;
            color: #666;
            margin-bottom: 2rem;
            line-height: 1.6;
        }
        .actions {
            display: flex;
            gap: 1rem;
            justify-content: center;
            flex-wrap: wrap;
        }
        .btn {
            padding: 0.8rem 2rem;
            text-decoration: none;
            border-radius: 4px;
            font-weight: 500;
            transition: all 0.3s;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        .btn-home {
            background-color: #0d6efd;
            color: white;
        }
        .btn-home:hover {
            background-color: #0b5ed7;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        .btn-contact {
            background-color: #6c757d;
            color: white;
        }
        .btn-contact:hover {
            background-color: #5a6268;
            transform: translateY(-2px);
            box-shadow: 0 4px 8px rgba(0,0,0,0.15);
        }
        .footer {
            margin-top: 3rem;
            color: #999;
            font-size: 0.9rem;
        }
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(10px); }
            to { opacity: 1; transform: translateY(0); }
        }
    </style>
</head>
<body>
    <div class="error-container">
        <h1 class="error-code">400</h1>
        <h2 class="error-message">错误请求</h2>
        <p class="error-description">
            您发送的请求格式有误，服务器无法理解。<br>
            请检查您的输入并重试。
        </p>
        <div class="actions">
            <a href="/" class="btn btn-home">返回首页</a>
            <a href="javascript:history.back()" class="btn btn-contact">返回上一页</a>
        </div>
    </div>
    <div class="footer">
        © 2025 爱情小窝
    </div>
</body>
</html>